package com.ourchem.bus.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ourchem.common.annotation.Excel;
import com.ourchem.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 收藏管理对象 collect_manage
 * 
 * @author xiYan
 * @date 2023-01-13
 */
public class CollectManage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 被收藏的运营信息id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectTime;

    /** 收藏类型 */
    @Excel(name = "收藏类型")
    private String type;

    /** 收藏id */
    @Excel(name = "收藏id")
    private String collectId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCollectTime(Date collectTime) 
    {
        this.collectTime = collectTime;
    }

    public Date getCollectTime() 
    {
        return collectTime;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setCollectId(String collectId) 
    {
        this.collectId = collectId;
    }

    public String getCollectId() 
    {
        return collectId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("collectTime", getCollectTime())
            .append("type", getType())
            .append("collectId", getCollectId())
            .toString();
    }
}
